using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyAttackEvent : MonoBehaviour//待删除
{
    [SerializeField]
    public EnemyAttackDataHolder enemyAttackDataHolder;
    private void Awake()
    {
        //enemyAttackDataHolder.enemyAttackAction += EnemyAttack;
    }

    public void EnemyAttack(AttackEveryRound aer,CharacterDataHolder attacker,CharacterDataHolder defender)
    {
        switch (aer.actionType)
        {
            case 0:
                defender.TakeDamage(aer.actionNum, defender);
                break;
            case 1:
                attacker.TakeDefence(aer.actionNum, attacker);
                break;
        }
        
    }
}
